import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpCourseAnnex {
  id!: number;
  annexId!: number;
  courseId!: number;
  uniacid!: number;
  sort?: string;
  sort2: number = 0;
}

export const ImsYzdKpCourseAnnexSchema = new EntitySchema({
  class: ImsYzdKpCourseAnnex,
  properties: {
    id: { primary: true, type: 'number' },
    annexId: { type: 'number' },
    courseId: { type: 'number' },
    uniacid: { type: 'number' },
    sort: { type: 'string', length: 255, nullable: true },
    sort2: { type: 'number', default: 0 },
  },
});
